-- GENERATED SPELL FOR [Marsh Oracle] --


function spell0_752(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_752', 3000, 1)
end

function spell1_752(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_752', 3000, 1)
end

function spell2_752(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_752', 0, 1)
end

function Sorts_752(pUnit, Event)
local choix_sorts_752 = math.random(0, 2)
if choix_sorts_752 == 0 then
pUnit:RegisterEvent('spell0_752', 1, 1)
end
if choix_sorts_752 == 1 then
pUnit:RegisterEvent('spell1_752', 1, 1)
end
if choix_sorts_752 == 2 then
pUnit:RegisterEvent('spell2_752', 1, 1)
end
end

function mob752_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_752', math.random(1500, 3000), 1)
end

function mob752_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob752_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob752_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(752, 1, 'mob752_Action')
RegisterUnitEvent(752, 2, 'mob752_Leave')
RegisterUnitEvent(752, 3, 'mob752_Kill')
RegisterUnitEvent(752, 4, 'mob752_Die')
